<template>
  <div>
    <h1>Child</h1>
    <button @click="emit('send-toy', toy)">发送</button>
  </div>
</template>

<script setup lang="ts">
import { ref, onMounted } from "vue";
let toy = ref("奥特曼");

const emit = defineEmits(["send-toy"]);
</script>

<style scoped></style>
